<template>
	<view>
		<view v-for="(item,index) in goodsList" :key="index" @click="gotoDetail(item)">
			<my-goods :item="item"></my-goods>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				goodsList: [],

			}
		},
		onLoad(o) {
			this.goodsList = JSON.parse(o.goodsList)
		},
		methods: {
			gotoDetail(item) {
				uni.navigateTo({
					url: '/subpkg/goods_detail/goods_detail?goods_id=' + item.goods_id
				})
			}
		},

		// 触底刷新
		onReachBottom() {

		},
		// 下拉更新
		onPullDownRefresh() {

		}
	}
</script>

<style lang="scss">


</style>